Screening criteria for weaning and minimal ventilatory settings for spontaneous breathing trial